import {createApp} from 'vue'
import "normalize.css"
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'


import HospitalTop from "@/components/hospital_top/index.vue"
import HospitalBootm from "@/components/hospital_bootm/index.vue"
import router from "@/router";
import {registerIcon} from "@/global";
import pinia from "@/store";

const app = createApp(App);
//注册全局组件
app.component("HospitalTop", HospitalTop)
app.component("HospitalBootm", HospitalBootm)
app.use(router)
//注册图标
registerIcon(app)
//国际化
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
app.mount('#app')
